#include <iostream>
#include <stdio.h>

using namespace std;

class Dog{

    private:
        int full;
    public:
        void eat(int n){
            full += n;
        }
        void show(){
            cout << full << endl;
        }
        void add(int a,int b){
            cout << a+b << endl;
        }
        void add(char a,char b){
            cout << a << b << endl;
        }
        void add(char a, int b){
            for(int i = 0 ; i < b ; i++){
                cout << a;
            }
            cout << endl;
        }
        Dog operator+(Dog b){
            Dog a(b.full+this->full);
            return a;
        }
        Dog(int n){
            full = n;
        }
        ~Dog(){
            cout << endl << "Bye!";
        }
};

int main() {
    Dog dog1(50);
    Dog dog2(50);
    Dog dog4(100);
    Dog dog3 = dog1+dog2+dog4+dog1+dog2;
    dog3.show();
    dog1.add(10,5);
    dog1.add('a','b');
    dog1.add('*',10);
    dog1.eat(5);
    dog1.show();
    return 0;
}